#ifndef _BULLET_H_
#define _BULLET_H_

#include "Object.h"

#define POWERUP_VX	0.1
#define GRAVITY		0.01



class Bullet : public Object
{
	//Object* container;				//object chua item, mac dinh item k hien len

	float _xOld;
	float _yOld;

	//float _vx;
	//float _vy;

	//float _accelY;



	float timeExplosion;
	float timeLive;
	bool isGravity;

public:
	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Contructor/destructor
	 */
	Bullet(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, bool isLeft);
	~Bullet();

	//void Render();
	//void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);

	//void Move(float TPF,list<Object*>* staObjs,list<Object*>* dynObjs);

 
	//void ResetRect();

	void move(list<Object*>* obj_list, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void render(int cameraX, int cameraY);
	void changeState(int state);
};

#endif